package com.bulletelc.apollopre.constants;

/**
 * author: lhl
 * time  : 2017/10/19
 * desc  : 存放网络请求的路径
 * 规则  :接口地址的命名规范: 请求方式+接口描述:例如:GET_SHOPPING_CART_LIST;
 */

public interface NetWorkPath {
    /**
     * 接口的form类型,1代表APP form
     */
    int APP_FORM_TYPE = 1;
    /**
     * header头参数token的key
     */
    String HEADER_KEY_AUTH = "Authorization";
    /**
     * Header头参数token的value的前缀
     */
    String AUTH_TOKEN_PRE = "Bearer ";
    /**
     * 默认每页数量是20条
     */
    int PAGE_SIZE = 20;


    /**
     * 用于测试图片地址
     */
    String TEST_IMAGE_URL_1 = "https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1318921809,2994479003&fm=173&s=9E121DCF4ABE9ADE4A65C82C0300B041&w=408&h=343&img.JPEG";
    String TEST_IMAGE_URL_2 = "http://pic152.nipic.com/file/20180110/9448607_085224110000_2.jpg";
    String TEST_IMAGE_URL_3 = "http://pic149.nipic.com/file/20171215/6635099_010718660000_2.jpg";
    String TEST_IMAGE_URL_4 = "https://gss0.bdstatic.com/-4o3dSag_xI4khGkpoWK1HF6hhy/baike/w%3D268%3Bg%3D0/sign=5daf999a2b3fb80e0cd166d10eea4813/b8014a90f603738df5319989b91bb051f819ec26.jpg";
    String TEST_IMAGE_URL_5 = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1515754899465&di=70557df54c866551c50f7d36361a15a8&imgtype=0&src=http%3A%2F%2Fimages.xuejuzi.cn%2F1604%2F1_160410231125_1.jpg";


    //==========================================================================
    /**
     * 主机路径
     */
    //String HOST_PATH = "http://fe-st1-staging.zdt6.com/";
    String HOST_PATH = "https://eshop-apollo-pre-staging.bulletelc.com/"; //staging站
    //String HOST_PATH = "https://eshop-apollo-pre.kebiyj.com/"; //live站
    //String HOST_PATH = "http://192.168.1.52/";//本地服务器路径 company
    //String HOST_PATH = "http://192.168.1.124/";//本地服务器路径 dell
    //String HOST_PATH = "http://192.168.1.69/";//本地服务器路径 ccx
    //String HOST_PATH = "http://192.168.1.103/";//本地服务器路径 hcx
    //String HOST_PATH = "http://192.168.1.132/";//本地服务器路径 hcx

    /**
     * 商品详情页的详情内容
     */
    //String WEB_VIEW_PRODUCT_DETAIL = HOST_PATH + "show/product/default/detail";
    String WEB_VIEW_PRODUCT_DETAIL = HOST_PATH + "show/product/description";
    /**
     * 分享商品的url路径 +?id=x / +?sku=xx
     */
    String WEB_SHARE_PRODUCT_DETAIL = HOST_PATH + "show/product/detail";

    /**
     * 接口的根路径
     */
    String BASE_URL = HOST_PATH + "api/v1/";
    /**
     * 首页 轮播图片
     */
    String GET_HOME_SLIDER_SHOW = BASE_URL + "eshop/home-page/slide-show";
    /**
     * 首页 分类
     */
    String GET_HOME_CATE = BASE_URL + "eshop/product-category/home-category";
    /**
     * 首页 头条
     */
    String GET_HOME_BROADCASE = BASE_URL + "eshop/topic-article/top-article";
    /**
     * 首页 广告图片
     */
    String GET_HOME_ADVERTS = BASE_URL + "eshop/home-page/home-advertisement";
    /**
     * 产品推广接口
     */
    String BASE_PROMO_PRODUCT = BASE_URL + "eshop/promo/product/";
    /**
     * 个人模块  登录接口
     */
    String POST_LOGIN = BASE_URL + "eshop/member/login";
    /**
     * 个人模块  注册接口
     */
    String POST_REGISTER = BASE_URL + "eshop/member/register";
    /**
     * 个人模块 个人信息 / 头像
     */
    String GET_SETTING = BASE_URL + "eshop/member/my-settings";
    String GET_USER_AVATAR = BASE_URL + "eshop/member/my-settings/avatar-images";
    /**
     * 个人模块 修改密码 / 手机 / 修改头像
     */
    String POST_MODIFY_PASSWORD = BASE_URL + "eshop/member/my-settings/modify-password";
    String POST_REPHONE = BASE_URL + "eshop/member/my-settings/setting-phone";
    String POST_FORGET_PASSWORD = BASE_URL + "eshop/member/forget-password";
    String POST_IMAGE_UPLOAD = BASE_URL + "eshop/member/my-settings/images-upload";
    String POST_PROFILE_SAVE = BASE_URL + "eshop/member/my-settings/profile-save";
    /**
     * 个人模块  签名验证接口
     */
    String POST_CHECK_SIGNATURE = BASE_URL + "common-services/auth/check-signature";
    /**
     * 个人模块  发送sms验证码
     */
    String POST_SMS_CAPTCHA = BASE_URL + "common-services/auth/sms-captcha";
    /**
     * 公共展示模块  product详情 / 评论
     */
    String GET_PRODUCT_DETAIL = BASE_URL + "eshop/product/detail";
    String GET_PRODUCT_COMMENT = BASE_URL + "eshop/product-comment/show";
    /**
     * 公共展示模块  Product 搜索与列表
     */
    String GET_PRODUCT_LIST = BASE_URL + "eshop/product";
    /**
     * 产品推广  新品
     */
    String GET_PROMO_PRODUCT_NEW = BASE_PROMO_PRODUCT + "new";
    /**
     * 产品推广  推荐
     */
    String GET_PROMO_PRODUCT_RECOMMEND = BASE_PROMO_PRODUCT + "recommend";
    /**
     * 产品推广  套餐
     */
    String GET_PROMO_PRODUCT_PACKAGE = BASE_PROMO_PRODUCT + "package";
    /**
     * 产品推广  热销
     */
    String GET_PROMO_PRODUCT_HOTSALE = BASE_PROMO_PRODUCT + "hotsale";
    /**
     * 产品推广  优选
     */
    String GET_PROMO_PRODUCT_PREFERED = BASE_PROMO_PRODUCT + "prefered";
    /**
     * 产品推广  秒杀
     */
    String GET_PROMO_PRODUCT_SECKILL = BASE_PROMO_PRODUCT + "seckill";
    /**
     * 产品分类  一级和二级
     */
    String GET_PRODUCT_CATEGORY = BASE_URL + "eshop/product-category";
    /**
     * 个人模块 用户地址列表 / 新增 / 详情 / 更新 / 删除 / 默认
     */
    String GET_USER_ADDRESS = BASE_URL + "eshop/member/address-book";
    String GET_USER_ADDRESS_DETAIL = BASE_URL + "eshop/member/address-book/detail";
    String POST_USER_ADDRESS_UPDATE = BASE_URL + "eshop/member/address-book/update";
    String POST_USER_ADDRESS_CREATE = BASE_URL + "eshop/member/address-book/create";
    String POST_USER_ADDRESS_DELETE = BASE_URL + "eshop/member/address-book/delete";
    String GET_USER_ADDRESS_IS_DEFAULT = BASE_URL + "eshop/member/address-book/is-default";

    /**
     * 个人模块 用户收藏
     */
    String GET_USER_COLLECTIONS = BASE_URL + "eshop/member/wish-list";
    String POST_USER_COLLECTIONS_CREATE = BASE_URL + "eshop/member/wish-list/create";
    String POST_USER_COLLECTION_DELETE = BASE_URL + "eshop/member/wish-list/delete";
    String POST_USER_COLLECTION_CANCEL = BASE_URL + "eshop/member/wish-list/cancel";

    /**
     * 个人模块 用户发票列表 / 添加 / 更新 / 设置默认
     */
    String GET_USER_INVOICE = BASE_URL + "eshop/member/my-invoice";
    String GET_USER_INVOICE_DELETE = BASE_URL + "eshop/member/my-invoice/delete";
    String POST_USER_INVOICE_DETAIL = BASE_URL + "eshop/member/my-invoice/detail";
    String POST_USER_INVOICE_UPDATE = BASE_URL + "eshop/member/my-invoice/update";
    String POST_USER_INVOICE_CREATE = BASE_URL + "eshop/member/my-invoice/create";
    String POST_USER_INVOICE_IS_DEFAULT = BASE_URL + "eshop/member/my-invoice/is-default";

    /**
     * 立即购买
     */
    String POST_BUY_NOW = BASE_URL + "eshop/checkout/fast-order";
    /**
     * 购物车 加入／增加／减少接口
     */
    String POST_CART_UPDATE = BASE_URL + "eshop/cart/cart-update";
    /**
     * 购物车 列表
     */
    String POST_CART_LIST = BASE_URL + "eshop/cart/index";
    /**
     * 删除购物车产品
     */
    String POST_CART_DELETE = BASE_URL + "eshop/cart/cart-delete";
    /**
     * 购物车 去结算
     */
    String POST_CART_CHECK = BASE_URL + "eshop/order/cart-check";
    /**
     * 结算页 结交订单
     */
    String POST_CHECKOUT_ORDER = BASE_URL + "eshop/checkout/place-order";
    /**
     * 检查下单地址
     */
    String POST_CHECK_ADDRESS = BASE_URL + "eshop/checkout/check-address";
    /**
     * 获取 支付方式列表
     */
    String GET_PAY_TYPE = BASE_URL + "eshop/payment/method/index";
    /**
     * 生成预付单
     */
    String POST_PREPAY_ID = BASE_URL + "eshop/payment/pay-order";
    /**
     * 用户订单列表
     */
    String POST_ORDER_LIST = BASE_URL + "eshop/member/my-orders";
    /**
     * 查询订单(订单详情)
     */
    String POST_ORDER_DETAIL = BASE_URL + "eshop/member/my-orders/detail";
    /**
     * 获取订单状态的数量
     */
    String POST_ORDER_STATE_COUNT = BASE_URL + "eshop/member/my-orders/order-state-count";
    /**
     * 用户订单状态扭转
     */
    String POST_ORDER_STATE_UPDATE = BASE_URL + "eshop/member/my-orders/update";
    /**
     * 售后订单模块 列表 / 查看 / 提交
     */
    String GET_SERVICE_ORDER_LIST = BASE_URL + "eshop/member/refund-order";
    String GET_SERVICE_ORDER_DETAIL = BASE_URL + "eshop/member/refund-order/detail";
    String POST_SERVICE_ORDER_APPLY = BASE_URL + "eshop/member/refund-order/apply";
    String POST_SERVICE_ORDER_CONFIRM = BASE_URL + "eshop/member/refund-order/confirm";
    /**
     * 提交评论
     */
    String POST_SUBMIT_ORDER_COMMENT = BASE_URL + "eshop/product-comment/commit-comment";
    /**
     * 购买协议
     */
    String GET_PURCHASE_AGREEMENT = BASE_URL + "eshop/agreement/purchase-agreement";
    /**
     * 注册协议
     */
    String GET_REGISTER_AGREEMENT = BASE_URL + "eshop/agreement/register-agreement";
    /**
     * 提交意向订单
     */
    String POST_INTENTION_FORM = BASE_URL + "eshop/intention/submit";
    /**
     * 获取意向订单列表
     */
    String POST_INTENTION_LIST = BASE_URL + "eshop/intention/index";
    /**
     * 获取案例列表
     */
    String GET_CASE_LIST = BASE_URL + "eshop/intention/cms-case/index";
    /**
     * 获取案例详情
     */
    String GET_CASE_DETAIL = BASE_URL + "eshop/cms-case/detail";
    /**
     * 报价订单列表
     */
    String POST_QUOTATION_ORDER_LIST = BASE_URL + "eshop/quotation/default/index";
    /**
     * 报价订单详情
     */
    String POST_QUOTATION_ORDER_DETAIL = BASE_URL + "eshop/quotation/default/detail";
    /**
     * 报价订单状态设置
     */
    String POST_QUOTATION_ORDER_SET_STATE = BASE_URL + "eshop/quotation/default/set-state";
    /**
     * 提交订单
     */
    String POST_QUOTATION_ORDER_SUBMIT = BASE_URL + "eshop/quotation/default/submit";
    /**
     * 案例详情url
     */
    String CASE_DETAIL_URL = HOST_PATH + "design/detail-app";
    /**
     * 购物车分享
     */
    String POST_CREATE_CART_SHARE = BASE_URL + "eshop/cart/create-share";
    /**
     * 分享购物车成功请求
     */
    String POST_CART_SHARE_SUCCESS = BASE_URL + "eshop/cart/share-success";
    /**
     * APP微信授权登陆
     */
    String POST_LOGIN_WECHAT_CODE = BASE_URL + "eshop/member/default/wechat-code";
    /**
     * 砍价协议
     */
    String GET_BARGAIN_AGREEMENT = BASE_URL + "eshop/agreement/consume-group-protocol";
    /**
     * 生成砍价
     */
    String GET_ADD_BARGAIN = BASE_URL + "eshop/activity/bargain/default/add";
    /**
     * 砍价活动说明协议
     */
    String GET_BARGAIN_EXPLAIN = HOST_PATH + "show/default/bargain-cms";

}
